<?php

//EUROPA 100 AD
//
//Configuration File

# Set the configuration array
$config = array();

# Set the universal include directory
$config['dir_inc'] = '/Users/kevindougans/Sites/europa100ad.com/includes/';
$config['dir_text'] = '/Users/kevindougans/Sites/europa100ad.com/includes/text/';
$config['dir_ren'] = '/Users/kevindougans/Sites/europa100ad.com/httpdocs/rendered/';
define("PEAR", "/usr/share/php/");
define("DIR_TEXT", $config['dir_text']);
define("DIR_LOG", '/Users/kevindougans/Sites/europa100ad.com/logs/');

# Connect to the database with the $db var
require_once($config['dir_inc'] . 'database.inc.php');

# Import general functions
require_once($config['dir_inc'] . 'general.inc.php');

# Auto Load functions
function __autoload($class_name) {
    global $config;
    require_once($config['dir_inc'] . $class_name . '.inc.php');
}

# Copyright notice
$config['copyright'] = '<p>Copyright &copy; <a href="http://www.ikahootz.com/">iKahootz.com</a>
MMVII<br />

<small>Designed by <a href="http://www.edg3.co.uk/">edg3.co.uk</a></small><br />';

# Length of the UID in the URL bar
$config['uid_length'] = 8;

# Login URL
$config['url']['login'] = 'http://localhost/~kevindougans/europa100ad.com/?s=login';
$config['url']['play'] = 'http://localhost/~kevindougans/europa100ad.com/ceaser/en/';
$config['url']['play_effort'] = 'http://localhost/~kevindougans/europa100ad.com/ceaser/';
$config['url']['images'] = 'http://localhost/~kevindougans/europa100ad.com/image/';

define("URL_IMAGES", $config['url']['images']);
define("URL_SELF", $config['url']['play_effort'] . $_SERVER['REQUEST_URI']);
define("URL_PLAY", $config['url']['play']);

# Set where all the user information will be stored
$user_info = array();
$user_id = 0;

# the internal europa 100 ad buffer
$buffer = '';

# MySQL query logging... set to false when not being used for development to save server resources
$config['query_logging'] = TRUE;
$query_log = '';

function make_seed()
{
  list($usec, $sec) = explode(' ', microtime());
  return (float) $sec + ((float) $usec * 100000);
}

mt_srand(make_seed());

$publickey = "6Lc_OAAAAAAAABVvMSt_6TwE2DzIzmiHKkJu0E18";
$privatekey = "6Lc_OAAAAAAAADjgV9D2jCHRGpqFIAcmpo1Wb3SV";

date_default_timezone_set('Europe/London');

define('NOW', time());

?>